<?php

namespace App;
use Session;
use Illuminate\Database\Eloquent\Model;
use DB;
class Pay_Home extends Model{
	 //前台会员中心
	 public function lists(){
	 	$datas=DB::table('pay')->where('status',0)->get();
	 	return array_map('get_object_vars', $datas);
	 }
	 public function select_field($pay_id){
	 	$datas=DB::table('pay')->where('status',0)->where('pay_id',$pay_id)->get();
	 	return array_map('get_object_vars', $datas);
	 }
}